//package com.test.simplechat.controller;
//
//import com.test.simplechat.config.ServerConfig;
//import com.test.simplechat.server.FileServer;
//import org.slf4j.Logger;
//import org.slf4j.LoggerFactory;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.beans.factory.annotation.Value;
//import org.springframework.core.env.Environment;
//import org.springframework.stereotype.Controller;
//import org.springframework.web.bind.annotation.CrossOrigin;
//import org.springframework.web.bind.annotation.RequestMapping;
//
//import javax.annotation.PostConstruct;
//
///**
// * @author wen
// * 文件管理
// */
//@Controller
//@CrossOrigin
//@RequestMapping("/file")
//public class FileController {
//    private final static Logger LOGGER = LoggerFactory.getLogger(FileController.class);
//    @Value("${undertow.port}")
//    private String undertowPort;
//    @Autowired
//    private ServerConfig serverConfig;
//    @Autowired
//    private Environment env;
//    @PostConstruct
//    public void init() throws Exception{
//        new FileServer(Integer.parseInt(undertowPort)).start();
//    }
//}
